import { App as AntdApp, Layout } from 'antd';
import { Helmet } from 'react-helmet-async';

import Router from '@/router/index';
import AntdConfig from '@/theme/antd';

import { MotionLazy } from './components/animate/motion-lazy';
import LoginHintModal from './router/components/loginHint';


function App() {

  return (
    <AntdConfig>
      <AntdApp>
        <MotionLazy>
          <Helmet>
            <title>综合智能管理平台</title>
          </Helmet>
          <Layout>
            <Router />
          </Layout>

          <LoginHintModal />
        </MotionLazy>
      </AntdApp>
    </AntdConfig>
  );
}

export default App;
